<?php
include("../includes/common.php");
if($islogin2==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
include './head.php';
$uid=$rs=$DB->query("select * from pay_user WHERE name={$pid}");
 if($conf['invite']==0){
      exit("<script language='javascript'>alert('本站管理员暂未开启邀请推广功能，如有疑问请联系客服！');window.location.href='./';</script>");
    }
foreach($uid as $res){
 $usid=$res['id'];
}?>
<div class="clearfix"></div>  
  <div class="content-wrapper">
    <div class="container-fluid">
     <div class="row pt-2 pb-2">
        <div class="col-sm-9">
            <h4 class="page-title">邀请返利</h4>
            <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="javaScript:void();">邀请</a></li>
            <li class="breadcrumb-item"><a href="javaScript:void();">返利</a></li>
         </ol>
       </div>
     </div>
      <div class="row">
        <div class="col-lg-12">
          <div class="card">
            <div class="card-body">
                <h6 class="form-header text-uppercase">
                  <i class="fa fa-user-circle-o"></i>
                   邀请推广链接
                </h6>
                <div class="form-group row">
                  <label for="input-1" class="col-sm-2 col-form-label">您的推广链接</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" value="http://<?php echo $conf['local_domain'];?>/user/reg.php?geid=<?php echo $userrow['id']?>" disabled>
                  </div>
                </div>
                <div class="form-group row">
                  <label for="input-2" class="col-sm-2 col-form-label">推广成功统计</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" value="<?php echo $userrow['number']?>" disabled>
                  </div>
                </div>
 
            </div>
          </div>
        </div>
        </div>
 <div class="col-lg-12">
          <div class="card">
            <div class="card-header text-uppercase">关于推广返利注意事项：</div>
             <div class="card-body">
                <ul class="list-group">
              <li class="list-group-item list-group-item-primary">
             1.只要有商户通过您的推广链接成功注册，您将获得<?php echo $conf['invite_money']?>元佣金，推广获得的佣金都是实时到账您的余额的！<br/></li>
              <li class="list-group-item list-group-item-primary">2.您可以将您的推广链接分享到QQ、贴吧、社区、论坛、博客。<br/></li>
              <li class="list-group-item list-group-item-primary">
             3.虽然显得有些微不足道，但是日积夜累，积少成多，您动动手指就能赚到的钱还需要纠结？别犹豫快上车。<br/>
              </li>
                  </ul>
             </div>
          </div>
        </div>

</div>
</div>
<?php include './foot.php';?>